﻿
namespace Indeco.G24.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.BangGiaSanPham"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class BangGiaSanPhamEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// ComboBox for the IDSanPham property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDSanPham;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDSanPham property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDSanPhamLabel;
		
		/// <summary>
		/// ComboBox for the IDNhaCungCap property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDNhaCungCap;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDNhaCungCap property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDNhaCungCapLabel;
		
		/// <summary>
		/// ComboBox for the IDDiaBan property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDDiaBan;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDDiaBan property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDDiaBanLabel;
		
		/// <summary>
		/// CheckBox for the KichHoat property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxKichHoat;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the KichHoat property.
		/// </summary>
		protected System.Windows.Forms.Label uxKichHoatLabel;
		
		/// <summary>
		/// CheckBox for the ChungThuc property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxChungThuc;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ChungThuc property.
		/// </summary>
		protected System.Windows.Forms.Label uxChungThucLabel;
		
		/// <summary>
		/// CheckBox for the TrangThai property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxTrangThai;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the TrangThai property.
		/// </summary>
		protected System.Windows.Forms.Label uxTrangThaiLabel;
		
		/// <summary>
		/// CheckBox for the ChoNhapGia property.
		/// </summary>
		protected System.Windows.Forms.CheckBox uxChoNhapGia;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ChoNhapGia property.
		/// </summary>
		protected System.Windows.Forms.Label uxChoNhapGiaLabel;
		
		/// <summary>
		/// TextBox for the DonGia property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDonGia;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DonGia property.
		/// </summary>
		protected System.Windows.Forms.Label uxDonGiaLabel;
		
		/// <summary>
		/// TextBox for the VAT property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxVAT;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the VAT property.
		/// </summary>
		protected System.Windows.Forms.Label uxVATLabel;
		
		/// <summary>
		/// ComboBox for the IDNgoaiTe property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDNgoaiTe;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDNgoaiTe property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDNgoaiTeLabel;
		
		/// <summary>
		/// TextBox for the SoLuongTrongKho property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxSoLuongTrongKho;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the SoLuongTrongKho property.
		/// </summary>
		protected System.Windows.Forms.Label uxSoLuongTrongKhoLabel;
		
		/// <summary>
		/// TextBox for the TieuChuanKyThuat property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTieuChuanKyThuat;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the TieuChuanKyThuat property.
		/// </summary>
		protected System.Windows.Forms.Label uxTieuChuanKyThuatLabel;
		
		/// <summary>
		/// TextBox for the Thongtinthem property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxThongtinthem;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Thongtinthem property.
		/// </summary>
		protected System.Windows.Forms.Label uxThongtinthemLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemDangBaoGia property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemDangBaoGia;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemDangBaoGia property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemDangBaoGiaLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemHetHieuLuc property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemHetHieuLuc;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemHetHieuLuc property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemHetHieuLucLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemChinhSua property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemChinhSua;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemChinhSua property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemChinhSuaLabel;
		
		/// <summary>
		/// DataTimePicker for the ThoiDiemCapNhat property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxThoiDiemCapNhat;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ThoiDiemCapNhat property.
		/// </summary>
		protected System.Windows.Forms.Label uxThoiDiemCapNhatLabel;
		
		/// <summary>
		/// TextBox for the KeyBangGia property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxKeyBangGia;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the KeyBangGia property.
		/// </summary>
		protected System.Windows.Forms.Label uxKeyBangGiaLabel;
		#endregion
		
		#region Main entity
		private Entities.BangGiaSanPham _BangGiaSanPham;
		/// <summary>
		/// Gets or sets the <see cref="Entities.BangGiaSanPham"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.BangGiaSanPham"/> instance.</value>
		public Entities.BangGiaSanPham BangGiaSanPham
		{
			get {return this._BangGiaSanPham;}
			set
			{
				this._BangGiaSanPham = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxIDSanPham.DataBindings.Clear();
			this.uxIDSanPham.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDSanPham", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDNhaCungCap.DataBindings.Clear();
			this.uxIDNhaCungCap.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDNhaCungCap", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDDiaBan.DataBindings.Clear();
			this.uxIDDiaBan.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDDiaBan", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKichHoat.DataBindings.Clear();
			this.uxKichHoat.DataBindings.Add("Checked", this.uxBindingSource, "KichHoat", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxChungThuc.DataBindings.Clear();
			this.uxChungThuc.DataBindings.Add("Checked", this.uxBindingSource, "ChungThuc", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTrangThai.DataBindings.Clear();
			this.uxTrangThai.DataBindings.Add("Checked", this.uxBindingSource, "TrangThai", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxChoNhapGia.DataBindings.Clear();
			this.uxChoNhapGia.DataBindings.Add("Checked", this.uxBindingSource, "ChoNhapGia", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDonGia.DataBindings.Clear();
			this.uxDonGia.DataBindings.Add("Text", this.uxBindingSource, "DonGia", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVAT.DataBindings.Clear();
			this.uxVAT.DataBindings.Add("Text", this.uxBindingSource, "VAT", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDNgoaiTe.DataBindings.Clear();
			this.uxIDNgoaiTe.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDNgoaiTe", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSoLuongTrongKho.DataBindings.Clear();
			this.uxSoLuongTrongKho.DataBindings.Add("Text", this.uxBindingSource, "SoLuongTrongKho", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTieuChuanKyThuat.DataBindings.Clear();
			this.uxTieuChuanKyThuat.DataBindings.Add("Text", this.uxBindingSource, "TieuChuanKyThuat", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThongtinthem.DataBindings.Clear();
			this.uxThongtinthem.DataBindings.Add("Text", this.uxBindingSource, "Thongtinthem", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemDangBaoGia.DataBindings.Clear();
			this.uxThoiDiemDangBaoGia.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemDangBaoGia", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemHetHieuLuc.DataBindings.Clear();
			this.uxThoiDiemHetHieuLuc.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemHetHieuLuc", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemChinhSua.DataBindings.Clear();
			this.uxThoiDiemChinhSua.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemChinhSua", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxThoiDiemCapNhat.DataBindings.Clear();
			this.uxThoiDiemCapNhat.DataBindings.Add("Value", this.uxBindingSource, "ThoiDiemCapNhat", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxKeyBangGia.DataBindings.Clear();
			this.uxKeyBangGia.DataBindings.Add("Text", this.uxBindingSource, "KeyBangGia", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="BangGiaSanPhamEditControlBase"/> class.
		/// </summary>
		public BangGiaSanPhamEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_BangGiaSanPham != null) _BangGiaSanPham.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxIDSanPham = new System.Windows.Forms.ComboBox();
			uxIDSanPhamLabel = new System.Windows.Forms.Label();
			this.uxIDNhaCungCap = new System.Windows.Forms.ComboBox();
			uxIDNhaCungCapLabel = new System.Windows.Forms.Label();
			this.uxIDDiaBan = new System.Windows.Forms.ComboBox();
			uxIDDiaBanLabel = new System.Windows.Forms.Label();
			this.uxKichHoat = new System.Windows.Forms.CheckBox();
			uxKichHoatLabel = new System.Windows.Forms.Label();
			this.uxChungThuc = new System.Windows.Forms.CheckBox();
			uxChungThucLabel = new System.Windows.Forms.Label();
			this.uxTrangThai = new System.Windows.Forms.CheckBox();
			uxTrangThaiLabel = new System.Windows.Forms.Label();
			this.uxChoNhapGia = new System.Windows.Forms.CheckBox();
			uxChoNhapGiaLabel = new System.Windows.Forms.Label();
			this.uxDonGia = new System.Windows.Forms.TextBox();
			uxDonGiaLabel = new System.Windows.Forms.Label();
			this.uxVAT = new System.Windows.Forms.TextBox();
			uxVATLabel = new System.Windows.Forms.Label();
			this.uxIDNgoaiTe = new System.Windows.Forms.ComboBox();
			uxIDNgoaiTeLabel = new System.Windows.Forms.Label();
			this.uxSoLuongTrongKho = new System.Windows.Forms.TextBox();
			uxSoLuongTrongKhoLabel = new System.Windows.Forms.Label();
			this.uxTieuChuanKyThuat = new System.Windows.Forms.TextBox();
			uxTieuChuanKyThuatLabel = new System.Windows.Forms.Label();
			this.uxThongtinthem = new System.Windows.Forms.TextBox();
			uxThongtinthemLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemDangBaoGia = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemDangBaoGiaLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemHetHieuLuc = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemHetHieuLucLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemChinhSua = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemChinhSuaLabel = new System.Windows.Forms.Label();
			this.uxThoiDiemCapNhat = new System.Windows.Forms.DateTimePicker();
			uxThoiDiemCapNhatLabel = new System.Windows.Forms.Label();
			this.uxKeyBangGia = new System.Windows.Forms.TextBox();
			uxKeyBangGiaLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDSanPhamLabel
			//
			this.uxIDSanPhamLabel.Text = "IDSanPham:";
			this.uxIDSanPhamLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDSanPhamLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDSanPhamLabel);			
			//
			// uxIDSanPham
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDSanPham);
			this.uxIDSanPham.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxIDSanPham);
			//
			// uxIDNhaCungCapLabel
			//
			this.uxIDNhaCungCapLabel.Text = "IDNhaCungCap:";
			this.uxIDNhaCungCapLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDNhaCungCapLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDNhaCungCapLabel);			
			//
			// uxIDNhaCungCap
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDNhaCungCap);
			this.uxIDNhaCungCap.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDNhaCungCap);
			//
			// uxIDDiaBanLabel
			//
			this.uxIDDiaBanLabel.Text = "IDDiaBan:";
			this.uxIDDiaBanLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxIDDiaBanLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDiaBanLabel);			
			//
			// uxIDDiaBan
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDDiaBan);
			this.uxIDDiaBan.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxIDDiaBan);
			//
			// uxKichHoatLabel
			//
			this.uxKichHoatLabel.Text = "KichHoat:";
			this.uxKichHoatLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxKichHoatLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKichHoatLabel);			
			//
			// uxKichHoat
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKichHoat);
			this.uxKichHoat.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxKichHoat);
			//
			// uxChungThucLabel
			//
			this.uxChungThucLabel.Text = "ChungThuc:";
			this.uxChungThucLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxChungThucLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxChungThucLabel);			
			//
			// uxChungThuc
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxChungThuc);
			this.uxChungThuc.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxChungThuc);
			//
			// uxTrangThaiLabel
			//
			this.uxTrangThaiLabel.Text = "TrangThai:";
			this.uxTrangThaiLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxTrangThaiLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTrangThaiLabel);			
			//
			// uxTrangThai
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxTrangThai);
			this.uxTrangThai.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxTrangThai);
			//
			// uxChoNhapGiaLabel
			//
			this.uxChoNhapGiaLabel.Text = "ChoNhapGia:";
			this.uxChoNhapGiaLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxChoNhapGiaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxChoNhapGiaLabel);			
			//
			// uxChoNhapGia
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxChoNhapGia);
			this.uxChoNhapGia.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxChoNhapGia);
			//
			// uxDonGiaLabel
			//
			this.uxDonGiaLabel.Text = "DonGia:";
			this.uxDonGiaLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxDonGiaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDonGiaLabel);			
			//
			// uxDonGia
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDonGia);
			this.uxDonGia.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxDonGia);
			//
			// uxVATLabel
			//
			this.uxVATLabel.Text = "VAT:";
			this.uxVATLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxVATLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVATLabel);			
			//
			// uxVAT
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVAT);
			this.uxVAT.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxVAT);
			//
			// uxIDNgoaiTeLabel
			//
			this.uxIDNgoaiTeLabel.Text = "IDNgoaiTe:";
			this.uxIDNgoaiTeLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxIDNgoaiTeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDNgoaiTeLabel);			
			//
			// uxIDNgoaiTe
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDNgoaiTe);
			this.uxIDNgoaiTe.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxIDNgoaiTe);
			//
			// uxSoLuongTrongKhoLabel
			//
			this.uxSoLuongTrongKhoLabel.Text = "SoLuongTrongKho:";
			this.uxSoLuongTrongKhoLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxSoLuongTrongKhoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSoLuongTrongKhoLabel);			
			//
			// uxSoLuongTrongKho
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxSoLuongTrongKho);
			this.uxSoLuongTrongKho.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxSoLuongTrongKho);
			//
			// uxTieuChuanKyThuatLabel
			//
			this.uxTieuChuanKyThuatLabel.Text = "TieuChuanKyThuat:";
			this.uxTieuChuanKyThuatLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxTieuChuanKyThuatLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTieuChuanKyThuatLabel);			
			//
			// uxTieuChuanKyThuat
			//
			this.uxTieuChuanKyThuat.Width = 250;
			this.uxTieuChuanKyThuat.MaxLength = 256;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTieuChuanKyThuat);
			this.uxTieuChuanKyThuat.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxTieuChuanKyThuat);
			//
			// uxThongtinthemLabel
			//
			this.uxThongtinthemLabel.Text = "Thongtinthem:";
			this.uxThongtinthemLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxThongtinthemLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThongtinthemLabel);			
			//
			// uxThongtinthem
			//
			this.uxThongtinthem.Width = 250;
			this.uxThongtinthem.MaxLength = 16;
			//this.uxTableLayoutPanel.Controls.Add(this.uxThongtinthem);
			this.uxThongtinthem.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxThongtinthem);
			//
			// uxThoiDiemDangBaoGiaLabel
			//
			this.uxThoiDiemDangBaoGiaLabel.Text = "ThoiDiemDangBaoGia:";
			this.uxThoiDiemDangBaoGiaLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxThoiDiemDangBaoGiaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemDangBaoGiaLabel);			
			//
			// uxThoiDiemDangBaoGia
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemDangBaoGia);
			this.uxThoiDiemDangBaoGia.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxThoiDiemDangBaoGia);
			//
			// uxThoiDiemHetHieuLucLabel
			//
			this.uxThoiDiemHetHieuLucLabel.Text = "ThoiDiemHetHieuLuc:";
			this.uxThoiDiemHetHieuLucLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxThoiDiemHetHieuLucLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemHetHieuLucLabel);			
			//
			// uxThoiDiemHetHieuLuc
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemHetHieuLuc);
			this.uxThoiDiemHetHieuLuc.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxThoiDiemHetHieuLuc);
			//
			// uxThoiDiemChinhSuaLabel
			//
			this.uxThoiDiemChinhSuaLabel.Text = "ThoiDiemChinhSua:";
			this.uxThoiDiemChinhSuaLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxThoiDiemChinhSuaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemChinhSuaLabel);			
			//
			// uxThoiDiemChinhSua
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemChinhSua);
			this.uxThoiDiemChinhSua.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxThoiDiemChinhSua);
			//
			// uxThoiDiemCapNhatLabel
			//
			this.uxThoiDiemCapNhatLabel.Text = "ThoiDiemCapNhat:";
			this.uxThoiDiemCapNhatLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxThoiDiemCapNhatLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemCapNhatLabel);			
			//
			// uxThoiDiemCapNhat
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxThoiDiemCapNhat);
			this.uxThoiDiemCapNhat.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxThoiDiemCapNhat);
			//
			// uxKeyBangGiaLabel
			//
			this.uxKeyBangGiaLabel.Text = "KeyBangGia:";
			this.uxKeyBangGiaLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxKeyBangGiaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxKeyBangGiaLabel);			
			//
			// uxKeyBangGia
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxKeyBangGia);
			this.uxKeyBangGia.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxKeyBangGia);
			//
			// uxIDNgoaiTe
			//				
			this.uxIDNgoaiTe.DisplayMember = "KyHieu";	
			this.uxIDNgoaiTe.ValueMember = "IDNgoaiTe";	
			//
			// uxIDSanPham
			//				
			this.uxIDSanPham.DisplayMember = "IDSanPhamDanhMuc";	
			this.uxIDSanPham.ValueMember = "IDSanPham";	
			//
			// uxIDDiaBan
			//				
			this.uxIDDiaBan.DisplayMember = "IDDiaBanCha";	
			this.uxIDDiaBan.ValueMember = "IDDiaBan";	
			//
			// uxIDNhaCungCap
			//				
			this.uxIDNhaCungCap.DisplayMember = "NhaCungCap";	
			this.uxIDNhaCungCap.ValueMember = "IDNhaCungCap";	
			// 
			// BangGiaSanPhamEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "BangGiaSanPhamEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.NgoaiTe> _IDNgoaiTeList;
		
		/// <summary>
		/// The ComboBox associated with the IDNgoaiTe property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.NgoaiTe> IDNgoaiTeList
		{
			get {return _IDNgoaiTeList;}
			set 
			{
				this._IDNgoaiTeList = value;
				this.uxIDNgoaiTe.DataSource = null;
				this.uxIDNgoaiTe.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDNgoaiTeList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDNgoaiTe property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDNgoaiTeList
		{
			get { return _allowNewItemInIDNgoaiTeList;}
			set
			{
				this._allowNewItemInIDNgoaiTeList = value;
				this.uxIDNgoaiTe.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.SanPham> _IDSanPhamList;
		
		/// <summary>
		/// The ComboBox associated with the IDSanPham property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.SanPham> IDSanPhamList
		{
			get {return _IDSanPhamList;}
			set 
			{
				this._IDSanPhamList = value;
				this.uxIDSanPham.DataSource = null;
				this.uxIDSanPham.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDSanPhamList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDSanPham property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDSanPhamList
		{
			get { return _allowNewItemInIDSanPhamList;}
			set
			{
				this._allowNewItemInIDSanPhamList = value;
				this.uxIDSanPham.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.DiaBan> _IDDiaBanList;
		
		/// <summary>
		/// The ComboBox associated with the IDDiaBan property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.DiaBan> IDDiaBanList
		{
			get {return _IDDiaBanList;}
			set 
			{
				this._IDDiaBanList = value;
				this.uxIDDiaBan.DataSource = null;
				this.uxIDDiaBan.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDDiaBanList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDDiaBan property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDDiaBanList
		{
			get { return _allowNewItemInIDDiaBanList;}
			set
			{
				this._allowNewItemInIDDiaBanList = value;
				this.uxIDDiaBan.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.NhaCungCap> _IDNhaCungCapList;
		
		/// <summary>
		/// The ComboBox associated with the IDNhaCungCap property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.NhaCungCap> IDNhaCungCapList
		{
			get {return _IDNhaCungCapList;}
			set 
			{
				this._IDNhaCungCapList = value;
				this.uxIDNhaCungCap.DataSource = null;
				this.uxIDNhaCungCap.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDNhaCungCapList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDNhaCungCap property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDNhaCungCapList
		{
			get { return _allowNewItemInIDNhaCungCapList;}
			set
			{
				this._allowNewItemInIDNhaCungCapList = value;
				this.uxIDNhaCungCap.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
